package com.manga.reader.activity;

import android.annotation.TargetApi;
import android.app.ListActivity;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ArrayAdapter;

import com.bigpig245.manga.entity.MFManga;
import com.manga.reader.R;
import com.manga.reader.util.SystemUiHider;

/**
 * An example full-screen activity that shows and hides the system UI (i.e.
 * status bar and navigation/system bar) with user interaction.
 * 
 * @see SystemUiHider
 */
public class MainActivity extends ListActivity {
	
	private static MFManga[] mangaList;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.activity_main);
		
		
		// display list manga
		 // Instantiate the list of samples.
		mangaList = new MFManga[]{
                new MFManga("DragonBall", ChapterActivity.class),
                new MFManga("Detective Conan", ChapterActivity.class),
                new MFManga("Beelzebub", ChapterActivity.class),
                new MFManga("One Piece", ChapterActivity.class),
                new MFManga("Naruto", ChapterActivity.class),
        };

        setListAdapter(new ArrayAdapter<MFManga>(this,
                R.layout.activity_main,
                android.R.id.text1,
                mangaList));
		//end display list manga


	}

	
}
